class Category < BaseModel
  self.table_name = 'GDN_Category'
  self.export_table_name = 'categories'
  self.export_mappings = {
    id: 'CategoryID',
    name: 'Name',
    slug: 'UrlCode',
    position: 'Sort',
    created_at: 'DateInserted',
    updated_at: 'DateUpdated',
  }

  default_scope -> { where.not(CategoryID: -1) }
end